<template>
<div class="box">
    <div class="header">
      <van-search
  v-model="value"
  show-action
  label="豆瓣"
  placeholder="请输入搜索关键词"
  @search="onSearch"
>
  <template #action>
    <div @click="onClickButton">搜索</div>
  </template>
</van-search>
    </div>
    <main class="content">
      <van-swipe :autoplay="3000" lazy-render>
  <van-swipe-item v-for="image in images" :key="image">
    <img :src="image" style="width: 100%;
    height: 200px;" />
  </van-swipe-item>
</van-swipe>
<div class="tile">
  <p>Top Maker</p>
 <span>北京</span>
 <span>16</span>
 <span>广播</span>
</div>
<div>
  <img src="@/assets/images/1_02.jpg" alt="" style="width: 100%;">
</div>

    </main>
  </div>
</template>

<script setup>
    const images = [
      'https://fastly.jsdelivr.net/npm/@vant/assets/apple-1.jpeg',
 ]
</script>

<style lang="scss" scoped>
.tile{
  display: flex;
  flex-direction: column;
}
</style>